﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

public static class ObjectExt
{
    public static T IfNull<T>(this T value,T defaultValue)
    {
        return value == null ? defaultValue : value;
    }
}